﻿@model IEnumerable<Advertisement>
@Html.Extra()
<div class="slider-imgs">
    @for (int i = 0; i < Model.Count(); i++)
    {
        var item = Model.ToList()[i];
        <div class="slider-imgs-item" style="background-image:url(@item.AttachmentUrl);opacity:0;">
        </div>
    }

</div>
<ul class="slider-pager">
    @for (int i = 0; i < Model.Count(); i++)
    {
        if (i == 0)
        {
            <li class="on"><i></i></li>
        }
        else
        {
            <li><i></i></li>
        }
    }
</ul>